package com.tensquare.article.repository;

import com.tensquare.article.pojo.Comment;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

//操作MongoDB的持久层
public interface CommentRepository extends MongoRepository<Comment,String> {

    //根据文章id查询评论
    public List<Comment> findCommentsByArticleid(String articleId);
}
